using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;

namespace alkyneDB
{
	public class akcore
	{
		public class scrapper
		{
			public static class dir
			{
				public static List<FileInfo> scanDeep(string path, List<string> extensions)
				{
					List<FileInfo> returner = new List<FileInfo>(){};
					DirectoryInfo workingDIR = new DirectoryInfo(path);
					
					// gets all the files in the working directory
					foreach (FileInfo fi in workingDIR.GetFiles())
					{
							returner.Add(fi);
					}
					
					//gets all the files in each of the directories in the working directory
					foreach (DirectoryInfo di in workingDIR.GetDirectories())
					{
						returner.AddRange(scanDeep(di.FullName,extensions));
					}
					
					return returner;
				}
			}
		}
	}
}

